﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Fcdbas.WinUI.Forms;
using Fcdbas.CustomerOrder;
using Fcdbas.Core;

namespace Fcdbas.WinApp
{
    public partial class frmCustOrderDtl : cFormWindow
    {
        public frmCustOrderDtl()
        {
            InitializeComponent();
        }

        private void dfsPRINT_FLAG_EditValueChanged(object sender, EventArgs e)
        {
            //if (dfsPRINT_FLAG.Text == "1")
            //    chkPRINT_FLAG.Checked = true;
            //else
            //    chkPRINT_FLAG.Checked = false;
        }

        private void dfsPrint_Flag_EditValueChanged_1(object sender, EventArgs e)
        {
            if (dfsPrint_Flag.Text == "TRUE")
                chkPRINT_FLAG.Checked = true;
            else
                chkPRINT_FLAG.Checked = false;
        }

        private void dfsPrint_Flag_EnabledChanged(object sender, EventArgs e)
        {

        }

        private void dfsPrint_Flag_EditValueChanging(object sender, DevExpress.XtraEditors.Controls.ChangingEventArgs e)
        {
            if (dfsPrint_Flag.Text == "TRUE")
                chkPRINT_FLAG.Checked = true;
            else
                chkPRINT_FLAG.Checked = false;
        }

        private void dfsOrder_No_EditValueChanged(object sender, EventArgs e)
        {
           // string where = string.Format("order_no='{0}'", new string[] { dfsOrder_No.Text });
           // List<customer_order_line> ilOrderLine = Entity<customer_order_line>.FindAll(where, "", "", 0, 0);
           // cGridControl1.DataSource = ilOrderLine;
        }
    }
}
